// 设计未按规范注册报错窗口

//去除VSCode非必要报警
// ignore_for_file: sized_box_for_whitespace, camel_case_types

import 'package:flutter/material.dart';
import 'package:project_award_statistics/utils/mobile_material_design/my_button.dart';

class DialogRegisterErr_Empty extends StatelessWidget {
  const DialogRegisterErr_Empty({super.key});

  @override
  Widget build(BuildContext context) {
    return AlertDialog(
      backgroundColor: Theme.of(context).colorScheme.surface,
      content: Container(
        height: 200,
        width: 450,
        child: Column(   //设置列式布局容器
          children: [
            Center(
              child: Text(
                "注册错误",
                style: TextStyle(
                  fontSize: 20,
                  fontWeight: FontWeight.bold,
                ),
              ),
            ),
            SizedBox(height: 30,),
            Text(
              "您未输入注册姓名或密码,请重新检查您的输入!",
              style: TextStyle(
                fontSize: 17,
              ),
            ),
            SizedBox(height: 40,),
            Container(
              height: 45,
              width: 150,
              child: MyButton(
                text: "好的,我马上去检查", 
                onPressed: ()=>Navigator.of(context).pop(),
              ),
            ),
          ],
        ),
      ),
    );
  }
}